<template>
  <div class="div_layout">
    <div class="layout">
      <div>
        <img :src="picture" alt="" style="width: 450px;">
      </div>
      <div style="text-align: left;">
        <div>
          <span style="color: gray;">{{ messages.join('') }}</span>
        </div>
        <div>
          <span>{{ name }}</span>
        </div>
        <div>
          <span>{{ price }}/晚</span>
        </div>
        <div>
          <span>{{ content }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['picture', 'messages', 'name', 'price', 'content'],
  data() {
    return {

    }
  }
}
</script>

<style scoped>
.layout {
  width: 450px;
}

.div_layout {
  display: inline-block;
  width: 30%;
  margin-bottom: 20px;
}
</style>